Skip to content

Authenticate portable clients with existing workload permissions - #479

Merged
asselstine merged 5 commits into
mainfrom
provider-neutral-workload-attachment
Nov 30, 2026
Merged

asselstine merged 5 commits into
mainfrom
provider-neutral-workload-attachment

Conversation

@factorize-sh

@factorize-sh factorize-sh Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Portable enrollment binds a process's ephemeral key to one tenant, workload UUID, attachment, and distinct portable grant. Signatures bind each request's method, URL, body digest and sequence. The client authenticates the calling workload. The existing workload permission snapshot and proxy evaluator govern its integration access, including writes permitted by the grant and provider policy. The Fly OIDC machine binding is unchanged.

The HTTPS fixture uses two Node client processes, isolated PostgreSQL tenants and mocked upstream responses. It covers allowed and denied reads, a permitted Cloudflare fixture write, a denied X write, request tampering, replay, concurrent redemption, cross-workload and cross-tenant denial, revocation, expiry, and restart from a copied directory. See docs/portable-workloads.md for the operator/client walkthrough and recovery bounds.

Fly validation — 0e1f5ebb4580122a59e38a3f2062db46130fa183 passed the full suite on the isolated Fly runner: 319 API tests, 59 browser tests, and the Worker/OAuth/MCP lane. Independently verified the machine stopped. Mixed-case attachment and Fly VM proofs were redacted on ingestion and in the relay delivery body. An equally privileged peer grant could neither read nor query retained fixture bytes; revocation blocked the originator on both endpoints.

@factorize-sh factorize-sh Bot changed the title Add provider-neutral workload attachment for explicitly granted routes Authenticate portable clients with existing workload permissions Nov 30, 2026
@asselstine
asselstine merged commit 49f4619 into main Nov 30, 2026
7 checks passed
@asselstine
asselstine deleted the provider-neutral-workload-attachment branch November 30, 2026 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants